package actions;

import java.awt.event.ActionEvent;

import client_gui.ClientWindow;
import client_gui.SplashScreenDialog;

/**
 * Klasa predstavlja akciju otvaranja splash screen-a.
 * 
 * @author UrosKrkic & Radivoje Popovic
 */
public class SplashScreenAction extends RLMAbstractAction {

	public SplashScreenAction(ClientWindow owner) {
		setActionOwner(owner);
//		putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F7, 0));
		putValue(SMALL_ICON, loadIcon("images/splash.png"));
		putValue(NAME, "Splash");
		putValue(SHORT_DESCRIPTION, "Splash screen");
	}
	
	public void actionPerformed(ActionEvent e) {
		SplashScreenDialog splashScreen = new SplashScreenDialog(getActionOwner());
		splashScreen.setVisible(true);
	}
	
}
